home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 September
/
Macworld (1998-09).dmg
/
Serious Demos
/
MacWebCam 2.7
/
Sample AppleScripts
/
Anarchie sample
next >
Wrap
Text File
|
1997-01-12
|
742b
|
22 lines
-- A post-process script to FTP the last image to a remote location.
-- This script uses a two step process to minimize the time that a image
-- is unavailable to the http server.
-- Any attept to FTP an image from the Mac to a remote http server could
-- result in errors due to read/write contention.
-- Use at your own risk!
-- To use:
-- Change the variables below, and add passwords, if needed.
tell application "Anarchie"
set ftptempfile to "/yourpath/temp.jpg"
set ftpdestfile to "/yourpath/current.jpg"
set yourFTPHost to "ftp.yourhost.com"
set yourLocalImage to "RAM Disk:Image.jpg"
store file yourLocalImage host yourFTPHost path ftptempfile
rename host yourFTPHost path ftptempfile newname ftpdestfile
end tell